<?php
return [
    [
        'name' => __('common.system'),
        'icon' => 'layui-icon layui-icon-util',
        'child' => [
            [
                'name' => __('system.user.menu'),
                'child' => [
                    [
                        'name' => __('system.group.menu'),
                        'controller' => 'system/group',
                        'actions' => [
                            'index' => __('common.list'),
                            'permission' => __('common.permission'),
                        ]
                    ],
                    [
                        'name' => __('system.role.menu'),
                        'controller' => 'system/role',
                        'actions' => [
                            'index' => __('common.list'),
                            'create' => __('common.create'),
                            'edit' => __('common.edit'),
                            'delete' => __('common.delete'),
                            'permission' => __('common.permission'),
                        ]
                    ],
                    [
                        'name' => __('system.user.menu'),
                        'controller' => 'system/user',
                        'actions' => [
                            'index' => __('common.list'),
                            'create' => __('common.create'),
                            'edit' => __('common.edit'),
                            'delete' => __('common.delete'),
                        ]
                    ]
                ]
            ],
            [
                'name' => __('common.basic_archives'),
                'child' => [
                    [
                        'name' => __('job.classify.menu'),
                        'controller' => 'job/classify',
                        'actions' => [
                            'index' => __('common.list'),
                            'create' => __('common.create'),
                            'edit' => __('common.edit'),
                            'delete' => __('common.delete')
                        ]
                    ],
                    [
                        'name' => __('job.tag.menu'),
                        'controller' => 'job/tag',
                        'actions' => [
                            'index' => __('common.list'),
                            'create' => __('common.create'),
                            'edit' => __('common.edit'),
                            'delete' => __('common.delete')
                        ]
                    ],
                    [
                        'name' => __('job.school.menu'),
                        'controller' => 'job/school',
                        'actions' => [
                            'index' => __('common.list'),
                            'create' => __('common.create'),
                            'edit' => __('common.edit'),
                            'delete' => __('common.delete')
                        ]
                    ],
                    [
                        'name' => __('job.company.menu'),
                        'controller' => 'job/company',
                        'actions' => [
                            'index' => __('common.list'),
                            'create' => __('common.create'),
                            'edit' => __('common.edit'),
                            'detail' => __('common.detail'),
                            'delete' => __('common.delete')
                        ]
                    ],
                    [
                        'name' => __('system.app_pkg.menu'),
                        'controller' => 'system/app_pkg',
                        'actions' => [
                            'index' => __('common.edit'),
                        ]
                    ],

                ]
            ]
        ]
    ],
    [
        'name' => __('common.business'),
        'icon' => 'layui-icon layui-icon-website',
        'child' => [
            [
                'name' => __('common.article_management'),
                'child' => [
                    [
                        'name' => __('job.advertisement.menu'),
                        'controller' => 'job/advertisement',
                        'actions' => [
                            'index' => __('common.list'),
                            'create' => __('common.create'),
                            'edit' => __('common.edit'),
                            'delete' => __('common.delete')
                        ]
                    ],
                    [
                        'name' => __('job.article.menu'),
                        'controller' => 'job/article',
                        'actions' => [
                            'index' => __('common.list'),
                            'create' => __('common.create'),
                            'edit' => __('common.edit'),
                            'delete' => __('common.delete')
                        ]
                    ]
                ]
            ],
            [
                'name' => __('common.recruitment_management'),
                'child' => [
                    [
                        'name' => __('job.staff.menu'),
                        'controller' => 'job/staff',
                        'actions' => [
                            'index' => __('common.list'),
                            'auth' => __('common.auth'),
                        ]
                    ],
                    [
                        'name' => __('job.recruitment.menu'),
                        'controller' => 'job/recruitment',
                        'actions' => [
                            'index' => __('common.list'),
                            'detail' => __('common.detail')
                        ]
                    ]
                ]
            ],
            [
                'name' => __('common.job_management'),
                'child' => [
                    [
                        'name' => __('job.resume.menu'),
                        'controller' => 'job/resume',
                        'actions' => [
                            'index' => __('common.list'),
                            'detail' => __('common.detail')
                        ]
                    ]
                ]
            ],
            [
                'name' => __('common.records_management'),
                'child' => [
                    [
                        'name' => __('job.invite.menu'),
                        'controller' => 'job/invite',
                        'actions' => [
                            'index' => __('common.list'),
                            'detail' => __('common.detail')
                        ]
                    ],
                    [
                        'name' => __('job.message.menu'),
                        'controller' => 'job/message',
                        'actions' => [
                            'index' => __('common.list'),
                            'detail' => __('common.detail')
                        ]
                    ]
                ]
            ]
        ]
    ]
];
